package com.ssy.lingxi.marketing.model.bo;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 *  添加报名资料-商品-附属(赠品/换购/套餐商品)信息-接口参数VO
 * @author ds
 * @date 2021/6/21
 * @version 2.0.0
 */
@Getter
@Setter
public class PfActivitySignUpGoodsCouponBO implements Serializable {

    private static final long serialVersionUID = 474156065545832571L;
    private Long id;
    /**
     * 活动商品id
     */
    private Long activityGoodsId;

    /**
     * 优惠券id
     */
    @NotNull(message = "优惠券id必填")
    @Range(min = 1,message = "优惠券id必须大于0")
    private Long couponId;
    /**
     * 优惠券名称
     */
    @NotNull(message = "优惠券名称必填")
    private String couponName;

    /**
     * 优惠阶梯
     */
    @NotNull(message = "优惠阶梯必填")
    private Integer groupNo;
    /**
     * 优惠门槛数量或金额
     */
    @NotNull(message = "优惠门槛必填")
    private BigDecimal limitValue;

    /**
     * 赠送数量
     */
    @NotNull(message = "优惠门槛必填")
    @Range(min = 1,message = "赠送数量必须大于0")
    private BigDecimal num;
}
